package org.marketing.common.event;

import org.marketing.common.dto.EventDataDTO;

public class EventPointsDTO  extends EventDataDTO{
    public EventPointsDTO(String userId, String workOrderNo, Long changeNum, boolean isPay, String failReason) {
		super();
		this.userId = userId;
		this.workOrderNo = workOrderNo;
		this.changeNum = changeNum;
		this.isPay = isPay;
		this.failReason = failReason;
	}
    
    public EventPointsDTO() {
		super();
	}

	/**
     * 被扣的用户id
     */
    private String userId;
    
   

	@Override
	public String toString() {
		return "EventPointsDTO [userId=" + userId + ", workOrderNo=" + workOrderNo + ", changeNum=" + changeNum
				+ ", isPay=" + isPay + ", failReason=" + failReason + "]";
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	

	public String getWorkOrderNo() {
		return workOrderNo;
	}

	public void setWorkOrderNo(String workOrderNo) {
		this.workOrderNo = workOrderNo;
	}

	public Long getChangeNum() {
		return changeNum;
	}

	public void setChangeNum(Long changeNum) {
		this.changeNum = changeNum;
	}

	/**
     * 商城的订单号
     */
    private String workOrderNo;
    
    /**
     * 扣的具体积分数
     */
    private Long changeNum;
	
    
    /**
     * 是否扣减成功 
     */
    private boolean isPay;
    
    public boolean isPay() {
		return isPay;
	}

	public void setPay(boolean isPay) {
		this.isPay = isPay;
	}

	public String getFailReason() {
		return failReason;
	}

	public void setFailReason(String failReason) {
		this.failReason = failReason;
	}

	private String failReason;
	
    
}
